package com.hehe.httpurlconnectiontest2;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by lenove on 2017/11/10.
 *
 * yeelink设备类
 */

public class YeelinkDecives {

    private String device_id;//设备ID
    private String device_title;//设备标题
    private String devece_about;//设备简介
    private int sensorFragmentPosition = 100;//这个参数是代表这个设备对用的传感器页面存放在页面主线程页面管理表中的位置
    //TODO 感觉是不是用ArrayList比较好，之后再改
    private LinkedList<YeelinkSensor> sensorLinkedList;

    YeelinkDecives(String device_id,String device_title,String devece_about,
                   LinkedList<YeelinkSensor> sensorLinkedList){
        this.device_id = device_id;
        this.device_title = device_title;
        this.devece_about = devece_about;
        this.sensorLinkedList = sensorLinkedList;

    }

    public void setDevece_about(String devece_about) {
        this.devece_about = devece_about;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }

    public void setDevice_title(String device_title) {
        this.device_title = device_title;
    }

    public void setSensorLinkedList(LinkedList<YeelinkSensor> sensorLinkedList) {
        this.sensorLinkedList = sensorLinkedList;
    }

    public LinkedList<YeelinkSensor> getSensorLinkedList() {
        return sensorLinkedList;
    }

    public String getDevece_about() {
        return devece_about;
    }

    public String getDevice_id() {
        return device_id;
    }

    public String getDevice_title() {
        return device_title;
    }

    public void setSensorFragmentPosition(int sensorFragmentPosition) {
        this.sensorFragmentPosition = sensorFragmentPosition;
    }

    public int getSensorFragmentPosition() {
        return sensorFragmentPosition;
    }
}
